<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
     <style type="text/css">
    </style>
    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" role="form" action="{:U('Course/edit')}" method="post">
                            <input type="hidden" name='id' value="{:$data['id']}" />
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 班级 </label>
                                <div class="col-sm-9">
                                    <select id="class_id" disabled="disabled" name="class_id" class="multiselect">
                                        <option value="0">--请选择班级--</option>
                                        <volist name="class"  id="val">
                                            <option <if condition="$data['class_id'] eq $val['id']">selected</if> value="{:$val['id']}">{:$val['name']}</option>
                                        </volist>
                                    </select>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 标题 </label>
                                <div class="col-sm-9">
                                    <input type="text" disabled="disabled" name="title" id="title" class="col-xs-10 col-sm-5" placeholder="如：第2周小班课程安排" value="{:$data['title']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle"></span>
                                            </span>
                                </div>
                            </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 课程表 </label>
                                <div class="col-xs-9 col-sm-9" id="course">
                                        <div id='time'></div>
                                        <!-- <a href="javascript:void(0);" id="last-week">上一周</a><a href="javascript:void(0);" id="next-week">下一周</a> -->
                                        <table id="monitor" class="table table-striped table-bordered">
                                          <volist name="data['datetime']" id="val">
                                            <tr>
                                                <td><input type="text" disabled="disabled" class='time' value="{$val['time']|date='Y-m-d',###}-星期{:date('N',$val['time'])}"></td>
                                                <td>上午课程</td>
                                                <td><input type="text" disabled="disabled" name='morning[]' value="{:$val['morning']}" /></td>
                                                <td>下午课程</td>
                                                <td><input type="text" disabled="disabled" name='afternoon[]' value="{:$val['afternoon']}" /></td>
                                            </tr>
                                         </volist>
                                        </table>
                                       <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle" style='color:red;size:3px;'>多门课程之间用逗号(,)分隔！</span>
                                            </span>
                                </div>
                            </div>

                            <div class="space-4"></div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
</body>
</html>
